<div class='center_form'>
    <!--div class="center_form_title">Add a department</div-->
    <div class="center_form_right">
        <div class='center_form_btn_div' onclick='javascript:Common.submit();$(this).attr("onclick","");'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/save.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("returnSure"); ?></div>
        </div>       
        <div class='center_form_btn_div' onclick='javascript:Common.gotoUrl("<?php echo HttpUtil::baseUrl();?>/trade/withdraw/searchline");'>
            <div class='center_form_btn_pic'>
                <img src='<?php echo HttpUtil::baseUrl();?>/images/cancel.gif'/>
            </div><div class='center_form_btn_text'><?php echo $this->translate("cancelBtn"); ?></div>
        </div>
    </div>
</div>
<div class="clear"></div>
<div class="centerbig_form">
      <div class="center_top"><span class="center_top_title"><?php echo $this->translate("withDrawInfo"); ?></span></div>
      <div class="right_form_content">

               <div class="form_content">
				        <table cellspacing="0" cellpadding="0" border="0" class="order_table">
				            <tr>
				                <td class="table_header"><?php echo $this->translate("SN"); ?></td>
				                <td><?php echo $this->withdraw['sn'];?></td>
				                <td class="table_header"><?php echo $this->translate("userId"); ?></td>
				                <td><?php echo $this->withdraw['uname'];?></td>
				            </tr>
				            <tr>
				                <td class="table_header"><?php echo $this->translate("tradeSum"); ?></td>
				                <td><?php echo $this->withdraw['trade_sum'] ; ?></td>
				                <td class=table_header><?php echo $this->translate("withDrawType"); ?></td>
				                <td><?php echo TradeConstant::getType($this->withdraw['withdraw_type']);?></td>
				            </tr>
				            <tr>
				                <td class="table_header"><?php echo $this->translate("userAccount2"); ?></td>
				                <td><?php echo $this->withdraw['in_id'] ;?></td>
				                <td class="table_header"><?php echo $this->translate("status"); ?></td>
				                <td><?php echo TradeConstant::getStatus($this->withdraw['status']) ;?></td>
				            </tr>
				            <tr>
				                <td class="table_header"><?php echo $this->translate("withdrawApplyDate"); ?></td>
				                <td><?php echo $this->withdraw['created'] ;?></td>
				                <td class="table_header">&nbsp;</td>
				                <td>&nbsp;</td>
				            </tr>
				       <?php
				            if($this->withdraw['status'] == 4){
				
				       ?>
				            <script type="text/javascript">
				                $(function(){
				                    $('#pay_time').datepicker({
				                           changeMonth: true,
				                           changeYear: true,
				                           dateFormat: 'yy-mm-dd'
				                     });
				                })
				            </script>
				            <form action="<?php echo $this->form->getAction(); ?>" method="post">
				            <input type="hidden" name="tradeLogId" value="<?php echo $this->id; ?>" />
				            <tr>
				                <td class="table_header"><?php echo $this->translate("tradeNum"); ?></td>
				                <td>
                                    <input type="text" value="<?php echo $this->form->getValue("trade_num"); ?>" id="trade_num" name="trade_num"/>
                                    <div class="form_element_error"><?php echo ZendFormUtil::renderErrorMessage($this->form->trade_num); ?></div>
                                </td>
				                <td class="table_header"><?php echo $this->translate("mimiReturnAccount2"); ?></td>
				                <td>
                                    <input type="text" value="<?php echo $this->form->getValue("out_id"); ?>" id="out_id" name="out_id"/>
                                    <div class="form_element_error"><?php echo ZendFormUtil::renderErrorMessage($this->form->out_id); ?></div>
                                </td>
				            </tr>
				            <tr>
				                <td class="table_header"><?php echo $this->translate("inDate"); ?></td>
				                <td>
				                    <input type="text" size="15" value="" id="pay_time" name="pay_time" readonly="readonly"/>
				                    <select name="pay_h">
				                    <?php
				                        foreach(TradeConstant::getHourList() as $key=>$hour){
				                            echo "<option value='$key'>$hour</option>";
				                        }
				                    ?>
				                    </select>
				                    :
				                    <select name="pay_m">
				                    <?php
				                        foreach(TradeConstant::getMinuteList() as $key=>$min){
				                            echo "<option value='$key'>$min</option>";
				                        }
				                    ?>
				                    </select>
				                    <div class="form_element_error"><?php echo ZendFormUtil::renderErrorMessage($this->form->pay_time); ?></div>
				                </td>
				                <td class="table_header">&nbsp;</td>
				                <td>&nbsp;</td>
				            </tr>
				            </form>
				       <?php
				            }
				       ?>
				        </table>
               </div>
 
      </div>
      <div class='clear'></div>
</div>
<div class='clear'></div>